package com.curry.android.demo.activity;

import java.io.IOException;
import java.io.InputStream;
import java.io.UnsupportedEncodingException;
import java.util.HashMap;
import java.util.Map;

import org.apache.http.Header;
import org.json.JSONObject;

import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.Button;

import com.curry.android.R;
import com.curry.android.base.BaseFragment;
import com.curry.android.http.HttpUtil;



public class FragmentOne extends BaseFragment {

	private Button btOk;
    public FragmentOne() {
        super();
    }
    @Override
    public void onResume() {
    	super.onResume();
    	btOk=(Button)getActivity().findViewById(R.id.btSave);
    	btOk.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View arg0) {
				Map<String,String> map=new HashMap<String,String>();
				map.put("username", "test");
				map.put("password", "123456");



			}
		});
    }
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        //return super.onCreateView(inflater, container, savedInstanceState);
    	return inflater.inflate(R.layout.fragment_one, container,false);
    }

}
